<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>个人信息-{$tpshop_config['shop_info_store_title']}</title>
    <link rel="shortcut icon" href="{$tpshop_config['shop_info_store_ico']}"/>
    <meta http-equiv="keywords" content="{$tpshop_config['shop_info_store_keyword']}"/>
    <meta name="description" content="{$tpshop_config['shop_info_store_desc']}"/>
    <link rel="stylesheet" href="__STATIC__/css/index.css" type="text/css">
    <link rel="stylesheet" href="__STATIC__/css/page.css" type="text/css">
    <script src="__STATIC__/js/jquery-1.10.2.min.js"></script>
    <script src="__STATIC__/js/slider.js"></script>
    <style>.pagination {
        margin-right: 16px
    }</style>
</head>

<body>
<!--------头部开始-------------->
<include file="Public/header"/>
<!--------头部结束-------------->

<div class="layout ov-hi">
    <div class="breadcrumb-area">
        <foreach name="navigate_user" key="k" item="v">
            <if condition="$k neq '首页'"> ></if>
            <a href="{$v}">{$k}</a>
        </foreach>
    </div>
</div>
<div class="layout pa-to-10 fo-fa-ar">
    <!--菜单-->
    <include file="User/menu"/>
    <!--菜单-->
    <div class="fr wi940">
        <div class="xgzl-w" style="overflow: hidden;">
            <form method="post" name="distribut_form" id="distribut_form">
                <dl>
                    <dd class="te-al po-re wi230 fl">&nbsp;</dd>
                    <dd class="fl ta-tldf">
                        <table style="width:700px;">
                            <tbody>
                            <tr>
                                <td class="cl_left">会员级别：</td>
                                <td>
                                    <div class="dv_cell_left">
                                        <if condition="empty($user_level)">
                                            你已是最高级别
                                            <else/>
                                            <select class="selec" name="grade" id="grade">
                                                <volist name="user_level" id="p">
                                                    <option value="{$p.level_id}">{$p.level_name}报单金额{$p.amount}
                                                    </option>
                                                </volist>
                                            </select>
                                        </if>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td class="cl_left">交易密码：</td>
                                <td>
                                    <div class="dv_cell_left">
                                        <input type="password" id="secpwd" name="secpwd" class="imput_text vam"/>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" align="left">
                                    <if condition="empty($user_level)">
                                        你已是最高级别
                                        <else/>
                                        <input type="button" onClick="checkSubmit();" value="提交" class="btn_midefy"
                                               id="btn_midefy">
                                    </if>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </dd>
                </dl>
            </form>
        </div>
        <div class="cash_num mt20">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <th>原级别</th>
                    <th>升级后的级别</th>
                    <th>升级时间</th>
                    <th>说明</th>
                </tr>
                <foreach name="sj_list" item="v" >
                    <tr>
                        <td>{$v['y_grade']}</td>
                        <td>{$v['sj_grade']}</td>
                        <td>{$v['sj_time']|date="Y-m-d H:i:s",###}</td>
                        <td>{$v['note']}</td>
                    </tr>
                </foreach>
            </table>
        </div>
    </div>
</div>
<div class="he80"></div>
<!--------footer-开始-------------->
<include file="Public/footer2"/>
<!--------footer-结束-------------->
<script>
    function checkSubmit() {
        var secpwd = $('#secpwd').val();
        if (secpwd == '') {
            alert('请输入交易密码');
            return false;
        }
        $('#distribut_form').submit();
    }
</script>
</body>
</html>